package springboot.p1.di;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description: main
 * @author: lzp
 * @createTime: 2021-08-25 23:08
 **/
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DiConfig.class);
        UserFunctionService userFunctionService = context.getBean(UserFunctionService.class);
        System.out.println(userFunctionService.sayHello("di"));
        context.close();
    }
}
